package com.serie402.common.delegate;

import com.kiss.fw.delegate.AbstractDelegate;
import com.kiss.fw.exceptions.BusinessException;
import com.serie402.common.dto.ArchiveDTO;

public class ArchiveDelegate extends AbstractDelegate {
	private ArchiveDelegate() {
	}
	
	/**
	 * Creates the archive specified.
	 * 
	 * @param ArchiveDTO _dto
	 * @throws BusinessException
	 */
	public static void create(ArchiveDTO _dto) throws BusinessException {
		executeCommand("CreateArchive", _dto);
	}
	
	/**
	 * Retrieves the archive specified.
	 * 
	 * @param ArchiveDTO _dto
	 * @throws BusinessException
	 */
	public static void read(ArchiveDTO _dto) throws BusinessException {
		executeCommand("ReadArchive", _dto);
	}
	
	/**
	 * Updates the archive specified.
	 * 
	 * @param ArchiveDTO _dto
	 * @throws BusinessException
	 */
	public static void update(ArchiveDTO _dto) throws BusinessException {
		executeCommand("UpdateArchive", _dto);
	}
	
	/**
	 * Deletes the archive specified.
	 * 
	 * @param ArchiveDTO _dto
	 * @throws BusinessException
	 */
	public static void delete(ArchiveDTO _dto) throws BusinessException {
		executeCommand("DeleteArchive", _dto);
	}
	
	/**
	 * Searches for the specified archive.
	 * 
	 * @param ArchiveDTO _dto
	 * @throws BusinessException
	 */
	public static void search(ArchiveDTO _dto) throws BusinessException {
		executeCommand("SearchArchives", _dto);
	}
}